/**
 * @author kristian
 */

dojo.require("dojox.json.schema");
dojo.require("dojox.json.ref");

var google = {
	id: 'company_Google',
	name: 'Google',
	employees: [
		{"$ref": "person_Jack"}, 
		{"$ref": "person_Jimmy"}
	]
}

var microsoft = {
	id: 'company_Microsoft', 
	name: 'Microsoft', 
	employees: [
		{"$ref": "person_Susan"}
	],
	partners: [
		{"$ref": "company_Google"}
	]
};	



var companyModel = [google, microsoft];

// var resolvedCompanyModel = dojox.json.ref.resolveJson(companyModel);